package org.grottarossa.template.data.pojo.users;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;

public class UserList extends ArrayList<User> implements Serializable
{
	public static HashMap<String, User> usersHashMap;

	public HashMap<String, User> getUsersHashMap()
	{
		if(usersHashMap==null)
		{
			usersHashMap=new HashMap<String, User>();

			for(User u:this)
			{
				usersHashMap.put(u.getLoginID(), u);
			}
		}
		return usersHashMap;
	}

	private static final long serialVersionUID = -7535250207931981724L;
}
